/*公共配置部份*/

let webUrl = location.origin; //得到http://localhost:8080
let testWebUrl = '192.168.1.102';

// 环境的切换 export暴露给其它可引用
export let URLAPI = {
  mainUrl: "", //主工程1
  secUrl: "", //次工程2
  fileUpUrl:"",  //别家公司的接口
  fileUrl: "", //文件下载地址
};
if (process.env.NODE_ENV === "development" || webUrl.indexOf(testWebUrl) > -1) {
  //开发
  URLAPI = {
    mainUrl: "http://192.168.1.103:8777",
    secUrl: "http://192.168.1.103:9090",
    fileUpUrl:"http://86.81.9.16:8060",  //别家公司的接口（摄像头相关的视频接口）
    fileUrl: "http://192.168.1.145:9090",
  };
} else if (process.env.NODE_ENV === "production") {
  //正式
  URLAPI = {
    mainUrl: "http://86.81.10.218:8777",
    secUrl: "http://86.81.10.218:9090",
    fileUpUrl:"http://86.81.9.16:8060",  //别家公司的接口（摄像头相关的视频接口）
    fileUrl: "http://86.81.10.217:8765",
  };
}

export default URLAPI;
